<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="./commons/taglibs.jsp"%>
<%@ include file="./commons/list.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>首页</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
  </head>
  
  <body>
   <div>
	   <%-- <div style="width: 15%;height: 100%;float: left;margin-left: 10px">
	   		${user.username }欢迎登陆
	   </div> --%>
   		<div id='music' name='music' style="width: 65%;height: 100%;float: left;margin-left: 5px">
   			<!-- <iframe id='oneMusic' src="" style="width: 100%;height:100%" frameborder="no"></iframe> -->
   		</div>
   		
   		<div id='one' name='one' style="width: 355px;height: 100%;float: right;margin-right: 30px"> 
   			<iframe id='oneOpen' style="width: 360px;height:100%" frameborder="no"></iframe>
   		</div> 
   		
   </div>
  </body>
  <script type="text/javascript">
  $(function(){
	  //查询one一个
	  $.ajax({
		    type: "POST",
		    url: 'https://api.hibai.cn/api/index/index',
		    dataType: 'json',
		    data: {"TransCode":"030111","OpenId":"123456789","Body":""},
		    success: function(result){
		        /* $("#wordShow").text(result.Body.word+'   ———— 「ONE · 一个」');
		        $("#oneImg").attr("src",result.Body.img_url); */
		        $("#oneOpen").attr("src",result.Body.url);
		        return false;
		    }
		}); 
	  
	  setTimeout(function(){
		  $("#music").html("<iframe id='oneMusic' src='<%=basePath%>views/music.jsp' style='width: 100%;height:100%' frameborder='no'></iframe>");
		}, 2000);
  })
  </script>
</html>
